﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using TheDrinksApp.Database;
using TheDrinksApp.Models;

namespace TheDrinksApp.Screen.Order
{
    public partial class ViewMixerItem : UserControl
    {
        private Mixer thisMixer = new Mixer();

        public Mixer ThisMixer
        {
          get { return thisMixer; }
          set 
          { 
              thisMixer = value;
              
          }
        }

        public ViewMixerItem(Mixer m)
        {
            InitializeComponent();
            ThisMixer = m;
        }

        public delegate void ShowListSizeHandler(Mixer m);
        public event ShowListSizeHandler ShowListSize;
        private void tbMixerName_Tap(object sender, GestureEventArgs e)
        {
            Util.currentOrder.mixer = thisMixer;
            ShowListSize(ThisMixer);
        }

        private void UserControl_Loaded_1(object sender, RoutedEventArgs e)
        {
            tbMixerName.Text = thisMixer.MixerName.ToUpper();
        }
    }
}
